package com.example.springbootsfzy.service.sunkaixuan;


import com.example.springbootsfzy.domain.Notifications;
import com.example.springbootsfzy.mapper.NotificationsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NotificationsService {

    @Autowired
    private NotificationsMapper notificationsMapper;

    //通过memberId查
    public List<Notifications> findbynotificationId(int id){
        return notificationsMapper.findbynotificationId(id);
    }

    //通过notification_id查
    public Notifications selectByPrimaryKey(int id){
        return notificationsMapper.selectByPrimaryKey(id);
    }


    public int deleteByPrimaryKey(int id){
        return notificationsMapper.deleteByPrimaryKey(id);
    }

    public int insert(Notifications record){
        return notificationsMapper.insert(record);
    }

    public int insertSelective(Notifications record){
        return notificationsMapper.insertSelective(record);
    }



    public int updateByPrimaryKeySelective(Notifications record){
        return notificationsMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(Notifications record){
        return notificationsMapper.updateByPrimaryKey(record);
    }


}
